home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9686 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1012 b   |  28 lines

  1. Path: globe.indirect.com!usenet
  2. From: "Dent McC." <jdmccadd@bslnet.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Newbie ? - How to send output to printer
  5. Date: 3 Mar 1996 20:40:13 GMT
  6. Organization: J.D. McCADD
  7. Message-ID: <4hd03d$b5l@globe.indirect.com>
  8. NNTP-Posting-Host: prc027.bslnet.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  13.  
  14. I'm currently enrolled in a second semester C++ class and am having trouble sending 
  15. the output of my homework assignments to the printer.  In the past I was able to 
  16. #include <fstream.h> in the file, and also include the line
  17.  
  18. ofstream printer("prn")
  19.  
  20. This enabled me to replace all occurances of 'cout' with 'printer' to redirect output 
  21. to the printer.  That was using Turbo C++ (DOS).  Now that I've started using C++ 
  22. 4.5, i can no longer get any output to the printer.  It may have something to do with 
  23. the fact that the Target file is an EasyWin instead of DOS.  Any ideas.
  24.  
  25. Dent
  26.  
  27.  
  28.